package com.yh.correct.service;

import java.util.List;
import java.util.Map;

import com.yh.correct.model.LeavePersonnel;
import com.yh.correct.model.Page;

/**
 * 外出请假表业务层接口服务
 * @author swj
 *
 */
public interface ILeavePersonnelService {

	/**
	 * 获取外出请假表信息
	 * @param leavePersonnel
	 * @return
	 * @throws Exception 
	 */
	public LeavePersonnel getIdLeavePersonnel(int id) throws Exception;
	
	/**
	 * 增加外出请假表信息
	 * @param leavepersonnel
	 * @return
	 * @throws Exception 
	 */
	public int addLeavePersonnel(LeavePersonnel leavepersonnel) throws Exception;
	/**
	 * 
	 * 删除外出请假表信息
	 * @param leavepersonnel
	 * @return
	 * @throws Exception 
	 */
	public int delLeavePersonnel(LeavePersonnel leavepersonnel) throws Exception;
	
    /**
     * 修改外出请假表信息
     * @param leavepersonnel
     * @return
     * @throws Exception 
     */
    public int editLeavePersonnel(LeavePersonnel leavepersonnel) throws Exception;
    
    
    /**
     * 
     *模糊查询单个请假条信息列表
     * @param leavepersonnel
     * @return
     * @throws Exception 
     */
    public Page getLikeLeavePersonnel(Map<String, Object> leavepersonnel) throws Exception;

	/**
	 * 
	 * 根据Id获取外出请假登记
	 * @param leavepersonnel
	 * @return
	 * @throws Exception 
	 */
	public Map<String,Object> getLeavePersonnelById(LeavePersonnel leavepersonnel) throws Exception;
	
}
